package com.web.java0324mybatis.entity;

import java.util.List;

public class Dept {
    private int id;
    private String deptName;
    private int number;
    private  List<Staf> stafs;

    public Dept() {}

    public Dept(int id, String deptName, int number, List<Staf> stafs) {
        this.id = id;
        this.deptName = deptName;
        this.number = number;
        this.stafs = stafs;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public List<Staf> getStafs() {
        return stafs;
    }

    public void setStafs(List<Staf> stafs) {
        this.stafs = stafs;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "id=" + id +
                ", deptName='" + deptName + '\'' +
                ", number='" + number + '\'' +
                ", stafs=" + stafs +
                '}';
    }
}